From f5a0f24185ee2f3911e4b02358ade73d033055d8 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 21 Jan 2003 14:13:26 +0000 Subject: [PATCH] Zero our allocated struct. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@248 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mkshort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 9abf9e09c..64d17d91f 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -65,7 +65,7 @@ mkshort_add_to_list(mkshort_handle *h, char *name) { queue *e, *t; int hash; - uniq_shortname *s = xmalloc(sizeof (uniq_shortname)); + uniq_shortname *s = xcalloc(1, sizeof (uniq_shortname)); s->orig_shortname = strdup(name); hash = hash_string(name); -- 2.30.2